package com.zho.web.common.context;

import com.zho.business.AccountManager;
import com.zho.common.server.SpringUtils;

public abstract class SpringBeans {
    public interface Names {

        String ACCOUNT_MANAGER 	= "AccountManager";
    }
    
    /**
     * Get AccountManager spring bean
     * @return AccountManager
     */
    public static AccountManager getAccountManager() {
        try {
            return (AccountManager) SpringUtils.getBean(Names.ACCOUNT_MANAGER);
        } catch (Exception e) {
            return null;
        }
    } 

}
